import { serializeStyles } from '../serialize';
import { insertStyles } from '../utils';
/**
 * 1.生成hash值
 * 2.向head中插入一个style标签  .css-hash{color:red;}
 * 3.返回此类名
 * @param  {...any} args args[0]=['color:red;']
 */
function css(...args) {
  const serialized = serializeStyles(args);//{name:'名字',styles:'color:red;'}
  insertStyles(serialized);
  return 'css-' + serialized.name;
}
export default css;